x86/hvm: fix BUFIOREQ evtchn init for a stubdom
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 3 Jul 2012 07:48:28 +0000 (09:48 +0200)
committerAnthony PERARD <anthony.perard@citrix.com>
Tue, 3 Jul 2012 07:48:28 +0000 (09:48 +0200)
commit1efe5e116aebf7bc5a6be08f0a37de981af88cfe
treef44a5f509c2e8c4b2a1eff0649988706f9e52dda
parent817dbc6f30c6fe3b2b04ed862c2e92273e2a3bc3
x86/hvm: fix BUFIOREQ evtchn init for a stubdom

This is a missing part from the previous patch that add the BUFIOREQ_EVTCHN
parameter. This patch changes the ownership of the buifioreq event channel to
the stubdom (when HVM_PARAM_DM_DOMAIN is set within the stubdom).

This patch introduces an helper to replace a xen port.

This fix the initialization of QEMU inside the stubdomain.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Add error handling to first invocation of hvm_replace_event_channel().
Adjust type of hvm_replace_event_channel()'s second parameter.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Committed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/hvm.c